home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS01.ADF / Text / CLI Card < prev    next >
Text File  |  1985-12-04  |  8KB  |  346 lines

  1.  
  2.     AMICUS Amiga Reference Card      
  3.  
  4. AmigaDOS Commands
  5.  
  6. ;       comment
  7.  
  8. >       redirect standard input
  9.  
  10. <       redirect standard output
  11.  
  12. Assign  logicaldevice: dir
  13.  
  14. Break   processnumber [ALL][C][D][E][F]
  15.  
  16. CD      dir
  17.  
  18. Copy    [dir|file] [TO] dir|file
  19.           [ALL][QUIET]
  20.  
  21. Date    [dd-mmm-yy] [[h]h:mm[:ss]]
  22.  
  23. Delete  file|dir ...
  24.  
  25. Dir     [file|dir] [OPT A|D|I]
  26.             A: all subdirectories,
  27.             D: only directory names,
  28.             I: interactive
  29.  
  30. Diskcopy DFn: to DFm: [new name string]
  31.  
  32. Echo    "string"
  33.  
  34. EndCLI  stop this CLI
  35.  
  36. Fault   n ...
  37.  
  38. FileNote file "string"
  39.  
  40. Format  DRIVE DFn: NAME "string"
  41.  
  42. Info
  43.         give stats on known drives
  44.  
  45. Install DFn:
  46.  
  47. Join    file ... AS new_file
  48.  
  49. List    [file|dir] [P pattern] 
  50.             [S pattern] [KEYS]
  51.             [[NO]DATES] [QUICK]
  52.             [SINCE date] [UPTO date]
  53.  
  54. MakeDir dir
  55.  
  56. NewCLI  ["x/y/width/height/[name]"]
  57.  
  58. Prompt  "string"
  59.         Use %n in string to include
  60.         current task number in prompt.
  61.  
  62. Protect file|dir [R][W][D][E]
  63.  
  64. Rename  file|dir file|dir
  65.  
  66. Run     program [args]
  67.             [+ program [args] ] ...
  68.  
  69. Search  dir|pattern 
  70.             [SEARCH] "string" [ALL]
  71.  
  72. Sort    infile outfile [COLSTART n]
  73.  
  74. Stack   number
  75.  
  76. Status  [processnumber] [FULL] [TCB]
  77.           [SEGS] [ALL]
  78.  
  79. Type    file [OPT N|H]
  80.             N: show line numbers
  81.             H: display in hex
  82.  
  83. Wait    number SEC|MIN
  84.             [UNTIL hh:mm]
  85.  
  86. Why     
  87.         tell why last command failed
  88.  
  89. dir means a directory name, like
  90.     include/lattice
  91.  
  92. file means a file name, like
  93.     mywork.txt
  94.  
  95. filespec means a directory name or
  96.     a file name
  97.  
  98. string means quoted text, like
  99.     "Disk No. 5"
  100.  
  101. ... means you can have up to 10 of
  102.     these arguments, in most cases
  103.  
  104. Optional arguments are in square
  105.     brackets, [].  You must choose
  106.     one of the modifiers separated
  107.     with a vertical bar, |, if the
  108.     argument has modifiers.
  109.  
  110. Available logical devices are:
  111.     sys:     ram:    libs:
  112.     fonts:   t:      
  113.  
  114.  
  115.     AMICUS Amiga Reference Card      
  116.  
  117. AmigaDOS Execute commands
  118.  
  119. Execute file [arguments]
  120.  
  121. FailAt  number
  122.         exit execute file with given
  123.         AmigaDOS error number.
  124.  
  125. IF condition
  126.     Condition is one of:
  127.         [NOT] WARN|ERROR|FAIL
  128.         [NOT] string1 EQ string2
  129.         [NOT] EXISTS file
  130.  
  131. ENDIF
  132.  
  133. labels begin with :
  134.  
  135. Skip    [label]
  136. LAB     [label]
  137. Quit    [return_code]
  138.  
  139.  
  140.  
  141.         AMICUS Amiga Reference Card      
  142.  
  143. ED Commands
  144.  
  145. Commands in the ESC column are typed
  146. after ESC is pressed, at the * prompt.
  147.  
  148. ^ in the Key column means use the Ctrl
  149. key with the given key.
  150.  
  151. Cursor movement commands
  152.  
  153. ESC    Key     Action
  154. ----------------------------
  155. CL          Move left one char
  156. CR          Move right one char
  157.             Move up one line
  158.             Move down one line
  159.         ^I  Move right by TAB size
  160.         ^R  Move left one word
  161.         ^T  Move right one word
  162. CS          Move to start of line
  163. CE          Move to end of line
  164.         ^]  Move to start of line
  165.             or end of line
  166. N           Move to start of next line
  167. P           " " start of previous line
  168.         ^E  Move to top or bottom line
  169.             of current screen
  170.         ^D  Scroll text down
  171.         ^U  Scroll text up
  172. B           Bottom of file
  173. T           Top of file
  174.  
  175. Text changes
  176.  
  177. ESC    Key     Action
  178. ----------------------------
  179. S       ^M  Insert carriage return
  180. A/s/        Insert s as a line before
  181. I/s/    ^A  Insert s as a line after
  182. IB          Insert block previously
  183.             marked with BS, BE
  184. IF/foo/     Insert file named foo at 
  185.             present location
  186. DC      DEL Delete current character
  187.         BS  Delete previous character
  188.         ^O  Delete next word
  189. J           Join lines (delete next 
  190.             carriage return)
  191.         ^Y  Delete to end of line
  192. D       ^B  Delete line
  193. DB          Delete Block previously
  194.             marked with BS, BE
  195. EQ/s/t/     Exchange w/Query before
  196.             change is made
  197. E/s/t/      Exchange string s with t
  198. BE          Mark block end
  199. BS          Mark block start
  200. SB          Show block
  201. F/s/        Find string s
  202. BF          Find, looking backwards
  203. LC          Turn on upper/lower case
  204.             checking in searches
  205. UC          Turn off case checking
  206.  
  207.  
  208.     AMICUS Amiga Reference Card      
  209.  
  210. Other commands:
  211.  
  212. ESC    Key     Action
  213. ----------------------------
  214. U           Undo changes on this line
  215. RP          Repeat until error
  216. SL          Set Left margin
  217. SR          Set Right margin
  218. ST          Set TAB size
  219. EX          Extend right margin
  220. SH          Show information
  221. Q           Quit, do not save work
  222. SA          Save file, continue
  223. (Note: the SA command is buggy; it 
  224. sometimes erases the line you were
  225. on.  Move to a blank line before
  226. using SA to temporarily exit ED.)
  227.  
  228. WB/foo/     Write block to file foo
  229. X           Exit and save work
  230.         ^G  Repeat last ESC command
  231.  
  232.  
  233.     AMICUS Amiga Reference Card
  234.  
  235. Alert message numbers
  236.  
  237. 0       Debug() call
  238. 1       ???
  239. 2       bus error
  240. 3       address error
  241. 4       illegal instruction
  242. 5       division by zero
  243. 6       CHK instruction
  244. 7       TRAPV instruction
  245. 8       privileged instruction
  246. 9       single step trace
  247. A       line 1010 emulator
  248. B       line 1111 emulator
  249. 2x      trap instructions
  250. 2F      normal break point
  251.  
  252.  
  253.     AMICUS Amiga Reference Card      
  254.  
  255. Lattice C compiler options
  256.  
  257. LC1     [LC1Options] file
  258. LC2     [LC2Options] file
  259.  
  260. LC1Options:
  261.         -b      
  262.         -cc     nest comments
  263.         -cd     allow '$' in symbols
  264.         -cm     allow 'cc'
  265.         -cs     use one copy of string
  266.                 constants
  267.         -cu     force all "char" to
  268.                 "unsigned char"
  269.         -cw     ignore return()'s
  270.         -d      put debug info in quad
  271.                 file
  272.         -dsymbol[=value]
  273.                 define symbol
  274.         -idir/
  275.                 include file directory
  276.         -l      align data to an even
  277.                 4 byte address
  278.         -n      ignore chars 9-31 of
  279.                 symbol names
  280.         -oname  quad file name
  281.         -p      create C preprocessor
  282.                 output only
  283.         -u      remove predefined
  284.                 #define's
  285.         -x      definitions outside
  286.                 functions are treated
  287.                 as external references,
  288.                 not external definitions
  289.         
  290. LC2Options:
  291.         -f5|6   Use A5 or A6 for -b
  292.                 option
  293.         -oname  output file name
  294.         -s      load contiguously
  295.  
  296.  
  297.  
  298.     AMICUS Amiga Reference Card      
  299.  
  300. Assembler options
  301.  
  302. Assem   prog [-o outfile] [-c options]
  303.           [-i includedirectory/]
  304.           [-l listfile]
  305.  
  306. options:
  307.         S  place symbols in -o file
  308.         D  no local symbols in -o file
  309.         C  ignore label case
  310.         X  add xref info to -l file
  311.         Wn set workspace stack size
  312.            (default is 8000)
  313.  
  314.  
  315.     AMICUS Amiga Reference Card      
  316.  
  317. Linker options
  318.  
  319. Alink   file [+ file] ... [WITH file]
  320.           [LIB file [+ library] ...]
  321.           [XREF file] [WIDTH number]
  322.           [MAP file] [TO file]
  323.  
  324. example:
  325. ALink startup.o+foo.o 
  326.     LIB lc.lib+amiga.lib TO foo.ld
  327.  
  328.  
  329. Reference card by John Foust, Bruce Barrett,
  330.     Dale Luck, et. al.
  331.  
  332. AMICUS is a free, non-profit Amiga users
  333. group.  To join, send two self-addressed,
  334. stamped envelopes to:
  335.  
  336.     John Foust
  337.     Sight & Sound Music Software
  338.     16 N. Carroll St., Suite 600
  339.     Madison, Wisconsin 53703
  340.  
  341. AMICUS has a public domain disk library
  342. and special disks for Amiga developers.
  343. If you are a developer, please include
  344. proof of developer status, such as a 
  345. xerox of your acceptance letter.
  346.